<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Priithon.usefulX</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Priithon-module.html">Package&nbsp;Priithon</a> ::
        Module&nbsp;usefulX
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Priithon.usefulX-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module usefulX</h1><p class="nomargin-top"><span class="codelink"><a href="Priithon.usefulX-pysrc.html">source&nbsp;code</a></span></p>
<p>Priithon Y module: all functions to do with GUI</p>

<hr />
<div class="fields">      <p><strong>Author:</strong>
        Sebastian Haase &lt;seb.haase+Priithon@gmail.com&gt;
      </p>
      <p><strong>License:</strong>
        BSD license - see LICENSE file
      </p>
</div><!-- ==================== CLASSES ==================== -->
<a name="section-Classes"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Classes</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Classes"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX._listFilesViewer-class.html" class="summary-name" onclick="show_private();">_listFilesViewer</a>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX._listArrayViewer-class.html" class="summary-name" onclick="show_private();">_listArrayViewer</a>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_bugXiGraphics"></a><span class="summary-sig-name">_bugXiGraphics</span>(<span class="summary-sig-arg">doWorkaround</span>=<span class="summary-sig-default">1</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_bugXiGraphics">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#_guiExcept" class="summary-sig-name" onclick="show_private();">_guiExcept</a>(<span class="summary-sig-arg">exctype</span>,
        <span class="summary-sig-arg">value</span>,
        <span class="summary-sig-arg">tb</span>)</span><br />
      use only in `except:`-branch ...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_guiExcept">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_fixGuiExceptHook"></a><span class="summary-sig-name">_fixGuiExceptHook</span>()</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_fixGuiExceptHook">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_guiDisplNdArrayChoice"></a><span class="summary-sig-name">_guiDisplNdArrayChoice</span>(<span class="summary-sig-arg">arr</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_guiDisplNdArrayChoice">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_guiDisplHook"></a><span class="summary-sig-name">_guiDisplHook</span>(<span class="summary-sig-arg">v</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_guiDisplHook">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_fixGuiDisplayHook"></a><span class="summary-sig-name">_fixGuiDisplayHook</span>()</span><br />
      change default displayHook: print .3 instead of .299999</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_fixGuiDisplayHook">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_glutInit"></a><span class="summary-sig-name">_glutInit</span>(<span class="summary-sig-arg">argv</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_glutInit">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#_setAutosavePath" class="summary-sig-name" onclick="show_private();">_setAutosavePath</a>()</span><br />
      This function should be called once at the startup of the Priithon 
      shell.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_setAutosavePath">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test1"></a><span class="summary-sig-name">test1</span>()</span><br />
      test for  viewer + histogram with colMap band</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#test1">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test2"></a><span class="summary-sig-name">test2</span>()</span><br />
      test for  viewer2 + histogram with colMap band</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#test2">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test3"></a><span class="summary-sig-name">test3</span>()</span><br />
      test grey viewer 3D showing white noise</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#test3">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test4"></a><span class="summary-sig-name">test4</span>()</span><br />
      test color viewer 3D showing white noise</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#test4">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test5"></a><span class="summary-sig-name">test5</span>()</span><br />
      test 2d grey viewer showing fun mandelbrot in color</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#test5">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="test6"></a><span class="summary-sig-name">test6</span>()</span><br />
      test 3d grey viewer showing some Zernike Polynomials (nicely colored)
      and start horizontal line profile on left click</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#test6">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#editor" class="summary-sig-name">editor</a>(<span class="summary-sig-arg">filename</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">retTextWindow</span>=<span class="summary-sig-default">False</span>)</span><br />
      if filename is None:...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#editor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="commands"></a><span class="summary-sig-name">commands</span>()</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#commands">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#load" class="summary-sig-name">load</a>(<span class="summary-sig-arg">imgFN</span>=<span class="summary-sig-default">None</span>)</span><br />
      open any image file:
   '.fits'  - FITS files
   '.sif'   - Andor SIF files
   '.his'   - Hamamatsu HIS files
   any image file: jpg/bmp/png/...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#load">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#viewInViewer" class="summary-sig-name">viewInViewer</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">a</span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">doAutoscale</span>=<span class="summary-sig-default">1</span>)</span><br />
      like view but instead of opening a new window...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#viewInViewer">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#viewInViewer2" class="summary-sig-name">viewInViewer2</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">a</span>,
        <span class="summary-sig-arg">colorAxis</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">smart</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">doAutoscale</span>=<span class="summary-sig-default">1</span>)</span><br />
      like view2 but instead of opening a new window...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#viewInViewer2">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="listFilesViewer"></a><span class="summary-sig-name">listFilesViewer</span>(<span class="summary-sig-arg">dir</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">viewerID</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">autoscale</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">reuse</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">False</span>)</span><br />
      open a window showing a list of all (image) files in a given 
      directory per click these can be displayed in an image viewer</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#listFilesViewer">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="listArrayViewer"></a><span class="summary-sig-name">listArrayViewer</span>(<span class="summary-sig-arg">modname</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">__main__</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">viewerID</span>=<span class="summary-sig-default">None</span>)</span><br />
      open a window showing a list of all numpy arrays in given module per 
      click these can be displayed in an image viewer</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#listArrayViewer">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#saveSession" class="summary-sig-name">saveSession</a>(<span class="summary-sig-arg">fn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">autosave</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">True</span>)</span><br />
      saves all text from PyShell into a file w/ file name 'fn'
if fn is None it calls smart 'FN()' for you</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#saveSession">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#FN" class="summary-sig-name">FN</a>(<span class="summary-sig-arg">save</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">1</span>)</span><br />
      use mouse to get filename</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#FN">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#DIR" class="summary-sig-name">DIR</a>(<span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">1</span>)</span><br />
      use mouse to get directory name</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#DIR">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="cd"></a><span class="summary-sig-name">cd</span>()</span><br />
      change current working directory</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#cd">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="refresh"></a><span class="summary-sig-name">refresh</span>()</span><br />
      use in scripts to refresh PyShell</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#refresh">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#sleep" class="summary-sig-name">sleep</a>(<span class="summary-sig-arg">secs</span>=<span class="summary-sig-default">1</span>)</span><br />
      resfresh and then sleep if secs is int: call wxSleep else call 
      wxMilliSleep</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#sleep">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#iterChildrenTree" class="summary-sig-name">iterChildrenTree</a>(<span class="summary-sig-arg">parent</span>,
        <span class="summary-sig-arg">includeParent</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">topdown</span>=<span class="summary-sig-default">True</span>)</span><br />
      iterate of all children and child's childrens of a `parent` wxWindow...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#iterChildrenTree">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="plotProfileHoriz"></a><span class="summary-sig-name">plotProfileHoriz</span>(<span class="summary-sig-arg">img_id</span>,
        <span class="summary-sig-arg">y</span>,
        <span class="summary-sig-arg">avgBandSize</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotProfileHoriz">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="plotProfileVert"></a><span class="summary-sig-name">plotProfileVert</span>(<span class="summary-sig-arg">img_id</span>,
        <span class="summary-sig-arg">x</span>,
        <span class="summary-sig-arg">avgBandSize</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotProfileVert">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="plotProfileZ"></a><span class="summary-sig-name">plotProfileZ</span>(<span class="summary-sig-arg">img_id</span>,
        <span class="summary-sig-arg">y</span>,
        <span class="summary-sig-arg">x</span>,
        <span class="summary-sig-arg">avgBandSize</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotProfileZ">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#plotFitAny" class="summary-sig-name">plotFitAny</a>(<span class="summary-sig-arg">func</span>,
        <span class="summary-sig-arg">parms</span>,
        <span class="summary-sig-arg">min</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">max</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">step</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">hold</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">dataset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">doFit</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">logY</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logX</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logZeroOffset</span>=<span class="summary-sig-default">0.01</span>)</span><br />
      if min is None defaults to min-x of current plot (for given dataset)
if max is None defaults to max-x of current plot (for given dataset)
if step is None defaults to 1000 points between min and max
if hold is not None call Y.plothold(hold) beforehand</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitAny">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#plotFitDecay" class="summary-sig-name">plotFitDecay</a>(<span class="summary-sig-arg">parms</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1000<code class="variable-op">, </code>10000<code class="variable-op">, </code>10<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">min</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">max</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">step</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">hold</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">dataset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">doFit</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">logY</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logX</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logZeroOffset</span>=<span class="summary-sig-default">0.01</span>)</span><br />
      see U.yDecay.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitDecay">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#plotFitGaussian" class="summary-sig-name">plotFitGaussian</a>(<span class="summary-sig-arg">parms</span>=<span class="summary-sig-default"><code class="variable-group">(</code>0<code class="variable-op">, </code>10<code class="variable-op">, </code>100<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">min</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">max</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">step</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">hold</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">dataset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">doFit</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">logY</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logX</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logZeroOffset</span>=<span class="summary-sig-default">0.01</span>)</span><br />
      see U.yGaussian.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitGaussian">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#plotFitLine" class="summary-sig-name">plotFitLine</a>(<span class="summary-sig-arg">abTuple</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">min</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">max</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">step</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">hold</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">dataset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">doFit</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">logY</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logX</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logZeroOffset</span>=<span class="summary-sig-default">0.01</span>)</span><br />
      see U.yPlot...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitLine">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#plotFitPoly" class="summary-sig-name">plotFitPoly</a>(<span class="summary-sig-arg">parms</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">min</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">max</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">step</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">hold</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">dataset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">doFit</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">logY</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logX</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logZeroOffset</span>=<span class="summary-sig-default">0.01</span>)</span><br />
      see U.yPoly.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitPoly">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="plotHistogram"></a><span class="summary-sig-name">plotHistogram</span>(<span class="summary-sig-arg">a</span>,
        <span class="summary-sig-arg">nBins</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">amin</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">amax</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">histArr</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">norm</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">cumsum</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">exclude_amax</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">c</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-+</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">logY</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">logX</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">hold</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">logZeroOffset</span>=<span class="summary-sig-default">0.01</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">None</span>)</span><br />
      shortcut for Y.plotxy(U.histogramXY(a,...),...)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotHistogram">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vd"></a><span class="summary-sig-name">vd</span>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>)</span><br />
      return data arr of viewer 'vid' shortcut for: Y.viewers[vid].data</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vd">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vTransferFct" class="summary-sig-name">vTransferFct</a>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">execStr</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">usingXX</span>=<span class="summary-sig-default">True</span>)</span><br />
      define custom transfer function:
execStr is evaluted pixelwise
      (more precise: &quot;vectorized&quot; on all pixels (2d array) &quot;in parallel&quot;)
x : pixel value
x0: left hist brace value ( as float(..) )
x1: right hist brace value ( as float(..) )
y:  result needs to get assigned to `y`</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTransferFct">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vTransferGamma"></a><span class="summary-sig-name">vTransferGamma</span>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">gamma</span>=<span class="summary-sig-default">0.3</span>)</span><br />
      set transfer function so that images gets displayed using given gamma
      value</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTransferGamma">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vGammaGUI"></a><span class="summary-sig-name">vGammaGUI</span>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">gamma</span>=<span class="summary-sig-default">0.3</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vGammaGUI">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vClose"></a><span class="summary-sig-name">vClose</span>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">all</code><code class="variable-quote">'</code></span>)</span><br />
      close viewer with given vid vid can be a number, a sequence of 
      numbers, or 'all'</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vClose">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vReload"></a><span class="summary-sig-name">vReload</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">autoscale</span>=<span class="summary-sig-default">True</span>)</span><br />
      &quot;reload&quot; image data from memory into gfx card</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vReload">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vInterpolationSet" class="summary-sig-name">vInterpolationSet</a>(<span class="summary-sig-arg">v_ids</span>=<span class="summary-sig-default"><code class="variable-group">[</code>-1<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">magnify</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">minify</span>=<span class="summary-sig-default">0</span>)</span><br />
      set interpolation mode for OpenGL textures magnify: used when 
      &quot;zoomed in&quot;: magnification &gt; 1 minify: used when 
      &quot;zoomed out&quot;: magnification &lt; 1</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vInterpolationSet">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vArrange"></a><span class="summary-sig-name">vArrange</span>(<span class="summary-sig-arg">idxs</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">nx</span>=<span class="summary-sig-default">4</span>,
        <span class="summary-sig-arg">refSizeId</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">doCenter</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">x0</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">y0</span>=<span class="summary-sig-default">0</span>)</span><br />
      move viewer windows on screen to layout in order on a grid nx viewers
      per row (left to right) as many columns as needed</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vArrange">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vHistSettingsCopy"></a><span class="summary-sig-name">vHistSettingsCopy</span>(<span class="summary-sig-arg">id_src</span>=<span class="summary-sig-default">-2</span>,
        <span class="summary-sig-arg">id_target</span>=<span class="summary-sig-default">-1</span>)</span><br />
      copy settings from one viewer (viewer2) to another</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vHistSettingsCopy">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vGetZSecTuple"></a><span class="summary-sig-name">vGetZSecTuple</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      return values of all z-sliders of a given viever as a tuple</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vGetZSecTuple">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vShortcutAdd" class="summary-sig-name">vShortcutAdd</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">key</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"> </code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">func</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Y.wx.Bell()</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">mod</span>=<span class="summary-sig-default">0</span>)</span><br />
      appends entry to keyShortcutTable of specified viewer</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vShortcutAdd">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vShortcutReset" class="summary-sig-name">vShortcutReset</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      reset keyShortcutTable of specified viewer to default ...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vShortcutReset">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vZoom" class="summary-sig-name">vZoom</a>(<span class="summary-sig-arg">v_id</span>,
        <span class="summary-sig-arg">zoomfactor</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">cyx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">absolute</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      change zoom settings of viewer id</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vZoom">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vZoomGet" class="summary-sig-name">vZoomGet</a>(<span class="summary-sig-arg">v_id</span>,
        <span class="summary-sig-arg">returnCYX</span>=<span class="summary-sig-default">False</span>)</span><br />
      return zoomValue and (optionally) image center as shown in viewer id...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vZoomGet">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vHistScale"></a><span class="summary-sig-name">vHistScale</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">amin</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">amax</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">autoscale</span>=<span class="summary-sig-default">True</span>)</span><br />
      set new intensity scaling values None mean lowest / highest intensity
      for min / max respectively autoscale: scale displayed range to new 
      left and right braces</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vHistScale">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vHistScaleGet"></a><span class="summary-sig-name">vHistScaleGet</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      return current leftBrace and rightBrace values used in given viewer</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vHistScaleGet">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vHistScale2"></a><span class="summary-sig-name">vHistScale2</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">amin</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">amax</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">autoscale</span>=<span class="summary-sig-default">True</span>)</span><br />
      set new intensity scaling values for a view2 viewer if channel is 
      None - set all channels - otherwise only the given channel amin, 
      amax: None mean lowest / highest intensity for min / max respectively
      autoscale: scale displayed range to new left and right braces</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vHistScale2">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vHistScale2Get"></a><span class="summary-sig-name">vHistScale2Get</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>)</span><br />
      return current leftBrace and rightBrace values used in given viewer2 
      for the given channel; if channel is None a list of tuples for all 
      channels is returned</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vHistScale2Get">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vTitleGet" class="summary-sig-name">vTitleGet</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      return title of given viewer window...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTitleGet">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vTitleSet" class="summary-sig-name">vTitleSet</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      set title of given viewer window the actual text appearing in the 
      frame's title bar will be e.g.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTitleSet">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vColMap2" class="summary-sig-name">vColMap2</a>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">colmap</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">reverse</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">rgb</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>)</span><br />
      set color map for given color-viewer+channel</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vColMap2">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vColMap" class="summary-sig-name">vColMap</a>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">colmap</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">reverse</span>=<span class="summary-sig-default">0</span>)</span><br />
      set color map for given viewer
use vid=(vid,channel) for color-viewers</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vColMap">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vSetSlider"></a><span class="summary-sig-name">vSetSlider</span>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">z</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">zaxis</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">autoscale</span>=<span class="summary-sig-default">False</span>)</span><br />
      zaxis specifies &quot;which&quot; zaxis should moved to new value z</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSetSlider">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vPlotInspectDatapointsGUI"></a><span class="summary-sig-name">vPlotInspectDatapointsGUI</span>(<span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">dataset</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">activate</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">decimals</span>=<span class="summary-sig-default">3</span>)</span><br />
      open GUI for inspection of plot figure data points figureNo</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vPlotInspectDatapointsGUI">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vPlotAsSliderGUI" class="summary-sig-name">vPlotAsSliderGUI</a>(<span class="summary-sig-arg">vid</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">figureNo</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">zaxis</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">activate</span>=<span class="summary-sig-default">True</span>)</span><br />
      use a plot figure as z-slider by clicking into that plot...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vPlotAsSliderGUI">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vSetAspectRatio" class="summary-sig-name">vSetAspectRatio</a>(<span class="summary-sig-arg">v_ids</span>=<span class="summary-sig-default"><code class="variable-group">[</code>-1<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">y_over_x</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">1</span>)</span><br />
      strech images in y direction use negative value to mirror (flip)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSetAspectRatio">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vSetCoordsDisplayFormat" class="summary-sig-name">vSetCoordsDisplayFormat</a>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">showAsFloat</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">None</span>)</span><br />
      change format of coordinate / value info at to of viewer showAsFloat:
      True / False -- to show decimal x,y coordinates width: pixel width 
      reserved for info text (-1 for &quot;default&quot;)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSetCoordsDisplayFormat">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vCenter"></a><span class="summary-sig-name">vCenter</span>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      move displayed image into center of 'visible' area of given viewer</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vCenter">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vReadRGBviewport" class="summary-sig-name">vReadRGBviewport</a>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">clip</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">flipY</span>=<span class="summary-sig-default">True</span>)</span><br />
      return returns array with r,g,b values from &quot;what-you-see&quot;
   shape(3, height, width)
   dtype=uint8</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vReadRGBviewport">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vSaveRGBviewport" class="summary-sig-name">vSaveRGBviewport</a>(<span class="summary-sig-arg">v_id</span>,
        <span class="summary-sig-arg">fn</span>,
        <span class="summary-sig-arg">clip</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">flipY</span>=<span class="summary-sig-default">True</span>)</span><br />
      save &quot;what-you-see&quot; into RGB file of type-given-by-filename</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSaveRGBviewport">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vCopyToClipboard"></a><span class="summary-sig-name">vCopyToClipboard</span>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">clip</span>=<span class="summary-sig-default">True</span>)</span><br />
      copies image as seen on screen into clipboard if clip is True, clip 
      backgound</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vCopyToClipboard">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vresizeto"></a><span class="summary-sig-name">vresizeto</span>(<span class="summary-sig-arg">refId</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">idxs</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">nx</span>=<span class="summary-sig-default">4</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vresizeto">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vRaise"></a><span class="summary-sig-name">vRaise</span>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vRaise">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vRotate" class="summary-sig-name">vRotate</a>(<span class="summary-sig-arg">v_id</span>,
        <span class="summary-sig-arg">angle</span>=<span class="summary-sig-default">None</span>)</span><br />
      set displaying-rotation for viewer v_id
if angle is None open slider GUI</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vRotate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vzslider"></a><span class="summary-sig-name">vzslider</span>(<span class="summary-sig-arg">idxs</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">nz</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default">None</span>)</span><br />
      show a &quot;common slider&quot; window for synchronous z-scrolling 
      through multiple viewer idxs is list of indices if idxs is None, 
      synchronize all open viewers if an index in idxs is given as tuple, 
      it means (viewerID, zaxis) default is zaxis=0 otherwise</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vzslider">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vClearClosedViewers"></a><span class="summary-sig-name">vClearClosedViewers</span>(<span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">True</span>)</span><br />
      delete trailing closed Y.viewers items closed viewer stay in 
      `Y.viewers` list as None only trailing items should be removed to 
      keep used viewer IDs valid</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vClearClosedViewers">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vClearGraphics"></a><span class="summary-sig-name">vClearGraphics</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vClearGraphics">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickMarks"></a><span class="summary-sig-name">vLeftClickMarks</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">callFn</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickMarks">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickHorizProfile"></a><span class="summary-sig-name">vLeftClickHorizProfile</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">avgBandSize</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickHorizProfile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickVertProfile"></a><span class="summary-sig-name">vLeftClickVertProfile</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">avgBandSize</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickVertProfile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickZProfile"></a><span class="summary-sig-name">vLeftClickZProfile</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">avgBoxSize</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">slice</span>=<span class="summary-sig-default">Ellipsis</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickZProfile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickLineProfile"></a><span class="summary-sig-name">vLeftClickLineProfile</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">abscissa</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">line</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>)</span><br />
      abscissa can be 'x'       to plot intensity along line against 
      x-coordinate 'y'       against y-coord else      against length</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickLineProfile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickLineMeasure"></a><span class="summary-sig-name">vLeftClickLineMeasure</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">roundCoords2int</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickLineMeasure">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vLeftClickTriangleMeasure"></a><span class="summary-sig-name">vLeftClickTriangleMeasure</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">roundCoords2int</span>=<span class="summary-sig-default">0</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickTriangleMeasure">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vLeftClickBox" class="summary-sig-name">vLeftClickBox</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">fixSize</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">roundCoords2int</span>=<span class="summary-sig-default">1</span>)</span><br />
      if fixSize is None:...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickBox">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vLeftViewSubRegion" class="summary-sig-name">vLeftViewSubRegion</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">gfxWhenDone</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">hide</code><code class="variable-quote">'</code></span>)</span><br />
      use left mouse button to select a square sub region in viewer 
      &quot;id&quot; a new Y.view window will show that region</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftViewSubRegion">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vLeftClickDoes" class="summary-sig-name">vLeftClickDoes</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">callGlFn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">callFn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">roundCoords2int</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">onlyOnClick</span>=<span class="summary-sig-default">True</span>)</span><br />
      register left-click handler functions for viewer id
for v=viewers[id] v.lastLeftClick_atYX  gets set to remember 
    the y,x coordinates of the last click (as N.array)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickDoes">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vLeftClickNone" class="summary-sig-name">vLeftClickNone</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">delAll</span>=<span class="summary-sig-default">False</span>)</span><br />
      unregister left-click handler functions for viewer id there were 
      registered via vLeftClickDoes</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickNone">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vAddGraphics" class="summary-sig-name">vAddGraphics</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">fn</span>)</span><br />
      try e.g.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vAddGraphics">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vFollowMouse" class="summary-sig-name">vFollowMouse</a>(<span class="summary-sig-arg">v_id</span>,
        <span class="summary-sig-arg">xyViewers</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">xzViewers</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">yzViewers</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">zAxis</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">crossColor</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">setSliderInXYviewers</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">followZoomInXYviewers</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">followZoomInSideviewers</span>=<span class="summary-sig-default">True</span>)</span><br />
      if viewer v_id has more than one z-slider, 
   zAxis specifies which zaxis of v_id to use for z coordinate in xz-,yz-Viewers</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vFollowMouse">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_vSync_cleanEnableSyncMenu"></a><span class="summary-sig-name">_vSync_cleanEnableSyncMenu</span>(<span class="summary-sig-arg">id</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_vSync_cleanEnableSyncMenu">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vSyncViewersReset"></a><span class="summary-sig-name">vSyncViewersReset</span>(<span class="summary-sig-arg">vids</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span><br />
      &quot;un-sync&quot; given viewer if vids is empty: un-sync all 
      viewers</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSyncViewersReset">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vSyncViewers" class="summary-sig-name">vSyncViewers</a>(<span class="summary-sig-arg">vids</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>0<code class="variable-op">, </code>1<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">syncHist</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">registerDClick</span>=<span class="summary-sig-default">True</span>)</span><br />
      if vids is empty: sync all viewers</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSyncViewers">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vSyncViewersGui"></a><span class="summary-sig-name">vSyncViewersGui</span>()</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSyncViewersGui">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgMarkIn3D" class="summary-sig-name">vgMarkIn3D</a>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">zyx</span>=<span class="summary-sig-default"><code class="variable-group">(</code>None<code class="variable-op">, </code>200<code class="variable-op">, </code>200<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">kind</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Cross</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default">4</span>,
        <span class="summary-sig-arg">zPlusMinus</span>=<span class="summary-sig-default">9999</span>,
        <span class="summary-sig-arg">colAtZ</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">colLessZ</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">colMoreZ</span>=<span class="summary-sig-default"><code class="variable-group">(</code>0<code class="variable-op">, </code>1<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">widthAtZ</span>=<span class="summary-sig-default">2</span>,
        <span class="summary-sig-arg">widthLessZ</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">widthMoreZ</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">mark3D</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      kind is one of 'Cross', 'Circle', 'Box'</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgMarkIn3D">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vm"></a><span class="summary-sig-name">vm</span>(<span class="summary-sig-arg">id</span>)</span><br />
      return mountain viewer window of id</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vm">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vmScale"></a><span class="summary-sig-name">vmScale</span>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">zscale</span>)</span><br />
      scale mountain viewer window of id</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vmScale">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glCross"></a><span class="summary-sig-name">glCross</span>(<span class="summary-sig-arg">x0</span>,
        <span class="summary-sig-arg">y0</span>,
        <span class="summary-sig-arg">length</span>=<span class="summary-sig-default">50</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glCross">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glPlus"></a><span class="summary-sig-name">glPlus</span>(<span class="summary-sig-arg">x0</span>,
        <span class="summary-sig-arg">y0</span>,
        <span class="summary-sig-arg">length</span>=<span class="summary-sig-default">50</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glPlus">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glLine"></a><span class="summary-sig-name">glLine</span>(<span class="summary-sig-arg">x0</span>,
        <span class="summary-sig-arg">y0</span>,
        <span class="summary-sig-arg">x1</span>,
        <span class="summary-sig-arg">y1</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glLine">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glLineYxDyx"></a><span class="summary-sig-name">glLineYxDyx</span>(<span class="summary-sig-arg">yx0</span>,
        <span class="summary-sig-arg">dyx</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glLineYxDyx">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glBox"></a><span class="summary-sig-name">glBox</span>(<span class="summary-sig-arg">x0</span>,
        <span class="summary-sig-arg">y0</span>,
        <span class="summary-sig-arg">x1</span>,
        <span class="summary-sig-arg">y1</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glBox">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glCircle"></a><span class="summary-sig-name">glCircle</span>(<span class="summary-sig-arg">x0</span>,
        <span class="summary-sig-arg">y0</span>,
        <span class="summary-sig-arg">r</span>=<span class="summary-sig-default">10</span>,
        <span class="summary-sig-arg">nEdges</span>=<span class="summary-sig-default">60</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glCircle">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="glEllipse"></a><span class="summary-sig-name">glEllipse</span>(<span class="summary-sig-arg">x0</span>,
        <span class="summary-sig-arg">y0</span>,
        <span class="summary-sig-arg">rx</span>=<span class="summary-sig-default">10</span>,
        <span class="summary-sig-arg">ry</span>=<span class="summary-sig-default">5</span>,
        <span class="summary-sig-arg">phi</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">nEdges</span>=<span class="summary-sig-default">60</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glEllipse">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#glutText" class="summary-sig-name">glutText</a>(<span class="summary-sig-arg">str</span>,
        <span class="summary-sig-arg">posXYZ</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">size</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">mono</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enableLineSmooth</span>=<span class="summary-sig-default">False</span>)</span><br />
      use GLUT to draw some text
font type GLUT_STROKE_ROMAN      ( == 0) -&gt; mono=0
font type GLUT_STROKE_MONO_ROMAN ( == 1) -&gt; mono=1
if posXYZ is not None: posXYZ is EITHER (x,y) OR (x,y,z)
if size is not None: set size scale (EITHER scalar, (sx,sy) or (sx,sy,sz)
   [GLUT stroke font size of 1 is 100 &quot;pixels&quot; high for the letter `A`]</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#glutText">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#crust" class="summary-sig-name">crust</a>(<span class="summary-sig-arg">showLinesNumbers</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">wrapLongLines</span>=<span class="summary-sig-default">True</span>)</span><br />
      open a new pyCrust terminal.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#crust">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#shell" class="summary-sig-name">shell</a>(<span class="summary-sig-arg">showLinesNumbers</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">wrapLongLines</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">clone</span>=<span class="summary-sig-default">False</span>)</span><br />
      open a new pyShell terminal.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#shell">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#inspectWX" class="summary-sig-name">inspectWX</a>(<span class="summary-sig-arg">selectObj</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">refreshTree</span>=<span class="summary-sig-default">False</span>)</span><br />
      use this to debug / develop wx applications</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#inspectWX">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#inspect" class="summary-sig-name">inspect</a>(<span class="summary-sig-arg">what</span>=<span class="summary-sig-default">None</span>)</span><br />
      open a new pyFilling window.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#inspect">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#shellExec0" class="summary-sig-name">shellExec0</a>(<span class="summary-sig-arg">command</span>,
        <span class="summary-sig-arg">addHistory</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">useLocals</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">writeCommand</span>=<span class="summary-sig-default">True</span>)</span><br />
      to emulate a command beeing typed into the Priithon shell,
exec `command` in __main__.__dict__
and, if `addHistory` is True
 inject `command` into Priithon shell history</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellExec0">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#shellExec" class="summary-sig-name">shellExec</a>(<span class="summary-sig-arg">command</span>,
        <span class="summary-sig-arg">prompt</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">True</span>)</span><br />
      Execute command as if it was typed in directly.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellExec">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#shellMessage" class="summary-sig-name">shellMessage</a>(<span class="summary-sig-arg">msg</span>)</span><br />
      write a message into (main) shell window - or into terminal if no wx 
      shell exists</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellMessage">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#shellMenuAppendNewCommand" class="summary-sig-name">shellMenuAppendNewCommand</a>(<span class="summary-sig-arg">cmd</span>,
        <span class="summary-sig-arg">menuText</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">new command</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">menuCtrlKey</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">D</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">menu</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">bell</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">execModule</span>=<span class="summary-sig-default">None</span>)</span><br />
      register a new menu command with Ctrl key shortcut
cmd:
   if cmd is callable it will get called: cmd()
   else: cmd will get exec'ed w/ execModule as globals
        if execModule is None: use __main__</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellMenuAppendNewCommand">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="assignNdArrToVarname"></a><span class="summary-sig-name">assignNdArrToVarname</span>(<span class="summary-sig-arg">arr</span>,
        <span class="summary-sig-arg">arrTxt</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#assignNdArrToVarname">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="ColourDialog"></a><span class="summary-sig-name">ColourDialog</span>()</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#ColourDialog">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="clipboardGetText"></a><span class="summary-sig-name">clipboardGetText</span>()</span><br />
      read out system clipboard and return string if there was some text to
      get returns None if no text available</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#clipboardGetText">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#clipboardSetText" class="summary-sig-name">clipboardSetText</a>(<span class="summary-sig-arg">obj</span>,
        <span class="summary-sig-arg">useRepr</span>=<span class="summary-sig-default">False</span>)</span><br />
      write text into system clipboard</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#clipboardSetText">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="clipboardImageSaveToFile"></a><span class="summary-sig-name">clipboardImageSaveToFile</span>(<span class="summary-sig-arg">fn</span>=<span class="summary-sig-default">None</span>)</span><br />
      save a bitmap currently in the clipboard to an image file if fn is 
      None: uses FN()</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#clipboardImageSaveToFile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#clipboardGetText2array" class="summary-sig-name">clipboardGetText2array</a>(<span class="summary-sig-arg">transpose</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">comment</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">#</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">sep</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">convFcn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">skipNlines</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">convertDecimalKomma</span>=<span class="summary-sig-default">False</span>)</span><br />
      Return an array containing the data currently as text in the clipboard.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#clipboardGetText2array">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_define_vgAddXXX"></a><span class="summary-sig-name">_define_vgAddXXX</span>(<span class="summary-sig-arg">addWhat</span>,
        <span class="summary-sig-arg">extraArgs</span>,
        <span class="summary-sig-arg">extraDoc</span>,
        <span class="summary-sig-arg">extraCode</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_define_vgAddXXX">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgRemove" class="summary-sig-name">vgRemove</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">ignoreError</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics -</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgRemove">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgRefresh" class="summary-sig-name">vgRefresh</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      viewer line graphics - or not (CHECK!)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgRefresh">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgEnabledMaster" class="summary-sig-name">vgEnabledMaster</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      viewer line graphics -</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnabledMaster">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgEnableMaster" class="summary-sig-name">vgEnableMaster</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">on</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics -</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnableMaster">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgEnable" class="summary-sig-name">vgEnable</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">on</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">ignoreError</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics -</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnable">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgEnabled" class="summary-sig-name">vgEnabled</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">-1</span>)</span><br />
      viewer line graphics -</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnabled">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vgNameEnable"></a><span class="summary-sig-name">vgNameEnable</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">on</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">skipBlacklisted</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      en-/dis-able all 'viewer line graphics' with given name if 
      skipBlacklisted: do nothing for gfx which are blacklisted</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameEnable">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vgNameRemove"></a><span class="summary-sig-name">vgNameRemove</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">ignoreKeyError</span>=<span class="summary-sig-default">True</span>)</span><br />
      remove all 'viewer line graphics' with given name</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameRemove">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgNameBlacklist" class="summary-sig-name">vgNameBlacklist</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">add</span>=<span class="summary-sig-default">True</span>)</span><br />
      blacklisted line grpahics are (can be) ignored by vgNameEnable() used
      especially by auto-on/off trigged via &quot;z-section change&quot; 
      all idx with given name are added (add=True) or removed (add=False) 
      from blacklist.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameBlacklist">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgNameToggle" class="summary-sig-name">vgNameToggle</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">on</span>=<span class="summary-sig-default">None</span>)</span><br />
      toggle on/off (en-/dis-able) gfx with given name
if on is None:
    toggle based on curr.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameToggle">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgNameEnablerGUIbox" class="summary-sig-name">vgNameEnablerGUIbox</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>)</span><br />
      open GUI window for easy on/off switching of named GFXs</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameEnablerGUIbox">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vgIdxAddName"></a><span class="summary-sig-name">vgIdxAddName</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      add idx into list given by name (IOW: give idx an additional name) 
      name can be a list of names, than each name is applied silently 
      ignore names that idx was already part of</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgIdxAddName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vgIdxRemoveName"></a><span class="summary-sig-name">vgIdxRemoveName</span>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      remove idx from list given by name (IOW: idx no longer has that name)
      name can be a list of names, than each name is applied silently 
      ignore names that idx was not even part of</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgIdxRemoveName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgRemoveAll" class="summary-sig-name">vgRemoveAll</a>(<span class="summary-sig-arg">id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics -</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgRemoveAll">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vDrawingReset"></a><span class="summary-sig-name">vDrawingReset</span>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vDrawingReset">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vDrawingCircles" class="summary-sig-name">vDrawingCircles</a>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">allZsecs</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">r</span>=<span class="summary-sig-default">10</span>,
        <span class="summary-sig-arg">val</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">add</span>=<span class="summary-sig-default">False</span>)</span><br />
      if allZsecs:
    drawing fills all z sections the same
else:
    draw only into current z-sec</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vDrawingCircles">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vShowPixelGrid"></a><span class="summary-sig-name">vShowPixelGrid</span>(<span class="summary-sig-arg">v_id</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">spacingY</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">spacingX</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vShowPixelGrid">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_callAllEventHandlers"></a><span class="summary-sig-name">_callAllEventHandlers</span>(<span class="summary-sig-arg">handlerList</span>,
        <span class="summary-sig-arg">handlerFcnArgs</span>,
        <span class="summary-sig-arg">errorMsgListName</span>,
        <span class="summary-sig-arg">neverRaise</span>=<span class="summary-sig-default">False</span>)</span><br />
      helper function to call all registered event handlers prints 
      traceback to stderr</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#_callAllEventHandlers">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#registerEventHandler" class="summary-sig-name">registerEventHandler</a>(<span class="summary-sig-arg">handlerList</span>,
        <span class="summary-sig-arg">newFcn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">newFcnName</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">oldFcnName</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">delAll</span>=<span class="summary-sig-default">False</span>)</span><br />
      use this for event-handler function lists.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#registerEventHandler">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="vAnimate"></a><span class="summary-sig-name">vAnimate</span>(<span class="summary-sig-arg">vids</span>=<span class="summary-sig-default">-1</span>)</span><br />
      Open GUI window for &quot;play video&quot; mode</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vAnimate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddArrows" class="summary-sig-name">vgAddArrows</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">qs</span>,
        <span class="summary-sig-arg">factor</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddArrows">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddArrowsDelta" class="summary-sig-name">vgAddArrowsDelta</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">ds</span>,
        <span class="summary-sig-arg">factor</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddArrowsDelta">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddBoxes" class="summary-sig-name">vgAddBoxes</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">l</span>=<span class="summary-sig-default">4</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddBoxes">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddCircles" class="summary-sig-name">vgAddCircles</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">r</span>=<span class="summary-sig-default">4</span>,
        <span class="summary-sig-arg">nEdges</span>=<span class="summary-sig-default">20</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddCircles">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddCrosses" class="summary-sig-name">vgAddCrosses</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">l</span>=<span class="summary-sig-default">4</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddCrosses">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddEllipses" class="summary-sig-name">vgAddEllipses</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">nEdges</span>=<span class="summary-sig-default">20</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddEllipses">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddLineStrip" class="summary-sig-name">vgAddLineStrip</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddLineStrip">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddLines" class="summary-sig-name">vgAddLines</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">ltype</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">segcols</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">segcolflat</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddLines">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddRect" class="summary-sig-name">vgAddRect</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">enclose</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddRect">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddRectFilled" class="summary-sig-name">vgAddRectFilled</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">enclose</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddRectFilled">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Priithon.usefulX-module.html#vgAddTexts" class="summary-sig-name">vgAddTexts</a>(<span class="summary-sig-arg">id</span>,
        <span class="summary-sig-arg">ps</span>,
        <span class="summary-sig-arg">size</span>=<span class="summary-sig-default">0.1</span>,
        <span class="summary-sig-arg">mono</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">enumLabel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">width</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">idx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">enable</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">refreshNow</span>=<span class="summary-sig-default">True</span>)</span><br />
      viewer line graphics - returns GLList index(idx)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddTexts">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="viewers"></a><span class="summary-name">viewers</span> = <code title="[]"><code class="variable-group">[</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_error0"></a><span class="summary-name">_error0</span> = <code title="''"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_error"></a><span class="summary-name">_error</span> = <code title="''"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_print"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_print</span> = <code title="168">168</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_view"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_view</span> = <code title="169">169</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_view2"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_view2</span> = <code title="170">170</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_ploty"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_ploty</span> = <code title="171">171</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_plotxy"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_plotxy</span> = <code title="172">172</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_viewIn"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_viewIn</span> = <code title="173">173</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_viewIn2"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_viewIn2</span> = <code title="174">174</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_guiDisplNdArrayChoice_Menu_gridview"></a><span class="summary-name">_guiDisplNdArrayChoice_Menu_gridview</span> = <code title="175">175</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_plotprofile_avgSize"></a><span class="summary-name">_plotprofile_avgSize</span> = <code title="1">1</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_Menu_enableSync"></a><span class="summary-name">_Menu_enableSync</span> = <code title="176">176</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_Menu_SyncDone"></a><span class="summary-name">_Menu_SyncDone</span> = <code title="177">177</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#_rectCode" class="summary-name" onclick="show_private();">_rectCode</a> = <code title="'''
        y0,x0 = ps[0]
        y1,x1 = ps[1]
        if y0&gt;y1:
            y0,y1 = y1,y0
        if x0&gt;x1:
            x0,x1 = x1,x0
        if enclose:
..."><code class="variable-quote">'</code><code class="variable-string">\n        y0,x0 = ps[0]\n        y1,x1 = ps[1]\n </code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="buttonBoxes"></a><span class="summary-name">buttonBoxes</span> = <code title="[]"><code class="variable-group">[</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="cms_blackbody"></a><span class="summary-name">cms_blackbody</span> = <code title="['black', 'darkred', 'orange', 'yellow', 'white']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">yellow</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">white</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_colnames" class="summary-name">cms_colnames</a> = <code title="{'amaranth': array([ 0.89803922,  0.16862745,  0.31372549]),
 'amber': array([ 1.        ,  0.74901961,  0.        ]),
 'aquamarine': array([ 0.49803922,  1.        ,  0.83137255]),
 'azure': array([ 0.        ,  0.49803922,  1.        ]),
 'beige': array([ 0.96078431,  0.96078431,  0.8627451 ]),
 'black': array([ 0.,  0.,  0.]),
 'blue': array([ 0.,  0.,  1.]),
 'bluegreen': array([ 0.        ,  0.58431373,  0.71372549]),
..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">amaranth</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.89803922,  0.16862745,  <code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_colnames_255" class="summary-name">cms_colnames_255</a> = <code title="{'black': (0, 0, 0),
 'blue': (0, 0, 255),
 'cyan': (0, 255, 255),
 'darkblue': (0, 0, 128),
 'darkgreen': (0, 128, 0),
 'darkred': (128, 0, 0),
 'gray': (128, 128, 128),
 'green': (0, 255, 0),
..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>0<code class="variable-op">, </code>255<code class="variable-group">)</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_colnames_simple_wikipedia_org_List_of_colors" class="summary-name">cms_colnames_simple_wikipedia_org_List_of_colors</a> = <code title="'''Amaranth\t#E52B50
Amber\t#FFBF00
Aquamarine\t#7FFFD4
Azure\t#007FFF
Beige\t#F5F5DC
Black\t#000000
Blue\t#0000FF
Blue-green\t#0095B6
..."><code class="variable-quote">'</code><code class="variable-string">Amaranth\t</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="cms_greenred"></a><span class="summary-name">cms_greenred</span> = <code title="['green', 'darkgreen', 'black', 'darkred', 'red']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">darkgreen</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="cms_grey"></a><span class="summary-name">cms_grey</span> = <code title="['black', 'white']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">white</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="cms_redgreen"></a><span class="summary-name">cms_redgreen</span> = <code title="['red', 'darkred', 'black', 'darkgreen', 'green']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">darkgreen</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_spectrum" class="summary-name">cms_spectrum</a> = <code title="['darkred',
 'red',
 'orange',
 'yellow',
 'green',
 'blue',
 'darkblue',
 'violet']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">yellow</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">,</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_spectrum2" class="summary-name">cms_spectrum2</a> = <code title="['darkred',
 'red',
 'orange',
 '255:255:0',
 'green',
 'cyan',
 'blue',
 'darkblue',
..."><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">255:255:0</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">gre</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_spectrum3" class="summary-name">cms_spectrum3</a> = <code title="['darkred',
 'red',
 'orange',
 '255:255:0',
 'green',
 'cyan',
 'blue',
 'darkblue',
..."><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">255:255:0</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">gre</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Priithon.usefulX-module.html#cms_spectrum4" class="summary-name">cms_spectrum4</a> = <code title="['black',
 'darkred',
 'red',
 'orange',
 '255:255:0',
 'green',
 'cyan',
 'blue',
..."><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">255:255</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="cms_twocolorarray"></a><span class="summary-name">cms_twocolorarray</span> = <code title="['green', 'yellow', 'red']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">yellow</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="plot_colors"></a><span class="summary-name">plot_colors</span> = <code title="'rgbkcm'"><code class="variable-quote">'</code><code class="variable-string">rgbkcm</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="plot_defaultStyle"></a><span class="summary-name">plot_defaultStyle</span> = <code title="'-+'"><code class="variable-quote">'</code><code class="variable-string">-+</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="_guiExcept"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_guiExcept</span>(<span class="sig-arg">exctype</span>,
        <span class="sig-arg">value</span>,
        <span class="sig-arg">tb</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#_guiExcept">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

use only in `except:`-branch 
shows exception in nice GUI frame
using `guiExceptionFrame`
ONLY if we are in the main thread and 
     numberOfOpenExcWindows &lt; PriConfig.maxOpenExceptionsWindows

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_setAutosavePath"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_setAutosavePath</span>()</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#_setAutosavePath">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This function should be called once at the startup of the Priithon 
  shell. It generates a filename that will be used to do the autosaves # 
  this fn (i.e. the time stamp) is generated ONCE at Priithon Shell 
  startup</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="editor"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">editor</span>(<span class="sig-arg">filename</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">retTextWindow</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#editor">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

if filename is None:
    open new &lt;blank&gt; file
elif filename is a module or function:
    open the corresponding .py file if possible 
if retTextWindow:
    return the wxStyledTextCtrl object
    this can be used to print into

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="load"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">load</span>(<span class="sig-arg">imgFN</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#load">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
open any image file:
   '.fits'  - FITS files
   '.sif'   - Andor SIF files
   '.his'   - Hamamatsu HIS files
   any image file: jpg/bmp/png/... (all PIL formats)
        #20060824 CHECK  in this case the returned arr gets attr: arr._originLeftBottom=0
   'Mrc' (use Mrc.bindFile)
   TODO: &quot;_thmb_&lt;fn.jpg&gt;&quot; files are taken to mean &lt;fn.jpg&gt;
returns image array
        None on error

if imgFN is None  call Y.FN()  for you

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="viewInViewer"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">viewInViewer</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">a</span>,
        <span class="sig-arg">title</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">doAutoscale</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#viewInViewer">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

like view but instead of opening a new window
it reused existing viewer # id
if that viewer is closed (or was newer opened)
viewInViewer fails EXCEPT id==-1
  in that case a new viewer is created and gets reused
  for subsequent calls with id=-1

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="viewInViewer2"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">viewInViewer2</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">a</span>,
        <span class="sig-arg">colorAxis</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">smart</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">doAutoscale</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#viewInViewer2">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

like view2 but instead of opening a new window
it reused existing viewer # id
if that viewer is closed (or was newer opened)
viewInViewer2 fails EXCEPT id==-1
  in that case a new viewer is created and gets reused
  for subsequent called with id=-1

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="saveSession"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">saveSession</span>(<span class="sig-arg">fn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">autosave</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#saveSession">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

saves all text from PyShell into a file w/ file name 'fn'
if fn is None it calls smart 'FN()' for you

if autosave is True:
   ignore fn and use auto generated filename (see _priConfig.autoSave...)

if verbose:
   print '#  ..&lt;pySession&gt; ... saved' 

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="FN"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">FN</span>(<span class="sig-arg">save</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#FN">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>use mouse to get filename</p>
  <p>if verbose is true: also print filename</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="DIR"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">DIR</span>(<span class="sig-arg">verbose</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#DIR">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>use mouse to get directory name</p>
  <p>if verbose is true: also print dirname</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="sleep"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">sleep</span>(<span class="sig-arg">secs</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#sleep">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>resfresh and then sleep if secs is int: call wxSleep else call 
  wxMilliSleep</p>
  <p>without wx  call time.sleep(</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="iterChildrenTree"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">iterChildrenTree</span>(<span class="sig-arg">parent</span>,
        <span class="sig-arg">includeParent</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">topdown</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#iterChildrenTree">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

iterate of all children and child's childrens of a `parent` wxWindow
this is an iterator!
if topdown is False:
   return the children's children before the children

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="plotFitAny"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plotFitAny</span>(<span class="sig-arg">func</span>,
        <span class="sig-arg">parms</span>,
        <span class="sig-arg">min</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">max</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">step</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">hold</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">s</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">dataset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">doFit</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">figureNo</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">logY</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logX</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logZeroOffset</span>=<span class="sig-default">0.01</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitAny">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

if min is None defaults to min-x of current plot (for given dataset)
if max is None defaults to max-x of current plot (for given dataset)
if step is None defaults to 1000 points between min and max
if hold is not None call Y.plothold(hold) beforehand

if doFit:
  do a curve fit to adjust parms  before plotting
  return (parms, fitFlag)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="plotFitDecay"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plotFitDecay</span>(<span class="sig-arg">parms</span>=<span class="sig-default"><code class="variable-group">(</code>1000<code class="variable-op">, </code>10000<code class="variable-op">, </code>10<code class="variable-group">)</code></span>,
        <span class="sig-arg">min</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">max</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">step</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">hold</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">s</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">dataset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">doFit</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">figureNo</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">logY</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logX</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logZeroOffset</span>=<span class="sig-default">0.01</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitDecay">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

see U.yDecay.
    tuple of 1 or 3 or 5 or .. values
    first baseline = asymtote =y for t-&gt; inf
    then pairs:
      first:  intercept of an exponential decay
      second: half-time of an exponential decay

if min is None defaults to min-x of given `dataset` in given plot
if max is None defaults to max-x of given `dataset` in given plot
if step is None defaults to 1000 points between min and max
if hold is not None call Y.plothold(hold) beforehand

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="plotFitGaussian"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plotFitGaussian</span>(<span class="sig-arg">parms</span>=<span class="sig-default"><code class="variable-group">(</code>0<code class="variable-op">, </code>10<code class="variable-op">, </code>100<code class="variable-group">)</code></span>,
        <span class="sig-arg">min</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">max</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">step</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">hold</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">s</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">dataset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">doFit</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">figureNo</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">logY</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logX</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logZeroOffset</span>=<span class="sig-default">0.01</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitGaussian">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

see U.yGaussian.
   2- tuple is [sigma, peakVal]
   3- tuple is [x0, sigma, peakVal]
   4- tuple is [y0, x0, sigma, peakVal]

if min is None defaults to min-x of given `dataset` in given plot
if max is None defaults to max-x of given `dataset` in given plot
if step is None defaults to 1000 points between min and max
if hold is not None call Y.plothold(hold) beforehand

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="plotFitLine"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plotFitLine</span>(<span class="sig-arg">abTuple</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>,
        <span class="sig-arg">min</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">max</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">step</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">hold</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">s</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">dataset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">doFit</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">figureNo</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">logY</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logX</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logZeroOffset</span>=<span class="sig-default">0.01</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitLine">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>see U.yPlot... if min is None defaults to min-x of given `dataset` in 
  given plot if max is None defaults to max-x of given `dataset` in given 
  plot if step is None defaults to 1000 points between min and max if hold 
  is not None call Y.plothold(hold) beforehand</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="plotFitPoly"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plotFitPoly</span>(<span class="sig-arg">parms</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>,
        <span class="sig-arg">min</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">max</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">step</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">hold</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">s</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">-</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">dataset</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">doFit</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">figureNo</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">logY</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logX</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">logZeroOffset</span>=<span class="sig-default">0.01</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#plotFitPoly">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

see U.yPoly.
  baseline, first-order coeff, 2nd, ...

if min is None defaults to min-x of given `dataset` in given plot
if max is None defaults to max-x of given `dataset` in given plot
if step is None defaults to 1000 points between min and max
if hold is not None call Y.plothold(hold) beforehand

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vTransferFct"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vTransferFct</span>(<span class="sig-arg">vid</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">execStr</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">usingXX</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTransferFct">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

define custom transfer function:
execStr is evaluted pixelwise
      (more precise: &quot;vectorized&quot; on all pixels (2d array) &quot;in parallel&quot;)
x : pixel value
x0: left hist brace value ( as float(..) )
x1: right hist brace value ( as float(..) )
y:  result needs to get assigned to `y`

string is evaluated in __main__ as globals
empty evalStr deactivates custom transfer function (default)
if result y is ndim 3 (col,y,x): y gets transposed to (y,x,rgb) and interpreted as RBG 

if usingXX is True: `xx` can be used as shortcut for `N.clip((x-x0)/(x1-x0), 0, 1)`

Examples:
`y=N.clip((x-x0)/(x1-x0), 0, 1)`         #  equivalent to default
`y=N.clip((x-x0)/(x1-x0))**.3, 0, 1)` # gamma value of .3

NOTE: be care to not create errors ! 
  In case it happens, you will get error infinite messages,
  minimize window, and reset transfer functions quickly !!

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vInterpolationSet"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vInterpolationSet</span>(<span class="sig-arg">v_ids</span>=<span class="sig-default"><code class="variable-group">[</code>-1<code class="variable-group">]</code></span>,
        <span class="sig-arg">magnify</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">minify</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vInterpolationSet">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>set interpolation mode for OpenGL textures magnify: used when 
  &quot;zoomed in&quot;: magnification &gt; 1 minify: used when 
  &quot;zoomed out&quot;: magnification &lt; 1</p>
  <p>0: use intensity of &quot;nearest pixel&quot; 1: use &quot;linear 
  intepolated&quot; intensity of nearby pixels</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vShortcutAdd"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vShortcutAdd</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">key</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"> </code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">func</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Y.wx.Bell()</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">mod</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vShortcutAdd">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

appends entry to keyShortcutTable of specified viewer

key: keyCode (an int) or a char (implicit call of ord(key))
     (lower and upper case are automagically fixed up using SHIFT modifier)
flags: wx.MOD_NORMAL(0), wx.MOD_ALT(1),wx.MOD_CTRL(2),wx.MOD_SHIFT(2)
func: function (no args) to call on presseing shortcut key
     if type(func)== str: use exec func in __main__

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vShortcutReset"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vShortcutReset</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vShortcutReset">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

reset keyShortcutTable of specified viewer to default 
  (FIXME: 'Cmd-W' for closeWindow missing) accel 7777

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vZoom"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vZoom</span>(<span class="sig-arg">v_id</span>,
        <span class="sig-arg">zoomfactor</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">cyx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">absolute</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vZoom">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

change zoom settings of viewer id

depending on `absolute` the new zoom is set to
zoomfactor or to &quot;currentZoom&quot;*zoomfactor repectively
if zoomfactor is None:
    zoomfactor stays unchanged

if cyx is None:
    image center stays center
otherwise, image will get &quot;re-centered&quot; to cyx beeing the new center

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vZoomGet"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vZoomGet</span>(<span class="sig-arg">v_id</span>,
        <span class="sig-arg">returnCYX</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vZoomGet">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

return zoomValue and (optionally) image center as shown in viewer id
if returnCYX:
  return zoomValue, N.array((cy,cx))
else:
  return zoomValue

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vTitleGet"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vTitleGet</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTitleGet">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

return title of given viewer window
     (excluding the the leading &quot;1) &quot; part)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vTitleSet"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vTitleSet</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">title</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vTitleSet">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>set title of given viewer window the actual text appearing in the 
  frame's title bar will be e.g. '1) title' if id=1</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vColMap2"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vColMap2</span>(<span class="sig-arg">vid</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">colmap</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">reverse</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">rgb</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vColMap2">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

set color map for given color-viewer+channel

specify RGB of given channel as tuple of 3
   or use `None` to leave channel's RGB color setting unchanged

`colmap` should be a string; one of:
   ''   &lt;no color map&gt;
   lo[g]       log-scale
   mi[nmaxgray] (both mi or mm work)
   bl[ackbody]
   ra[inbow]
   wh[eel] red-green-blue-red
   wh[eel]XX  (last two characters must be digits: number-of-wheel-cycles)
  
  (only first two letters are checked)
OR
if colmap is a numpy array, the array is used directly as colmap
   it should be of shape (3, 256)
   if reverse is True: use array reversed (i.e. colmap[:, ::-1])
OR
colmap can also be a sequence of colors:
   e.g. colmap= ['darkred', 'red', 'orange', 'yellow', 'green', 'blue', 'darkblue', 'violet']

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vColMap"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vColMap</span>(<span class="sig-arg">vid</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">colmap</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">reverse</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vColMap">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

set color map for given viewer
use vid=(vid,channel) for color-viewers

colmap should be a string; one of:
   ''   &lt;no color map&gt;
   lo[g]       log-scale
   mi[nmaxgray] (both mi or mm work)
   bl[ackbody]
   ra[inbow]
   wh[eel] red-green-blue-red
   wh[eel]XX  (last two characters must be digits: number-of-wheel-cycles)
  
  (only first two letters are checked)
OR
if colmap is a numpy array, the array is used directly as colmap
   it should be of shape (3, 256)
   if reverse is True: use array reversed (i.e. colmap[:, ::-1])
OR
colmap can also be a sequence of colors:
   e.g. colmap= ['darkred', 'red', 'orange', 'yellow', 'green', 'blue', 'darkblue', 'violet']

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vPlotAsSliderGUI"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vPlotAsSliderGUI</span>(<span class="sig-arg">vid</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">figureNo</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">zaxis</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">activate</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vPlotAsSliderGUI">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

use a plot figure as z-slider by clicking into that plot
a GUI control window will open
given arguments are used as default values
note: changing `figureNo` in GUI (maybe) requires to click `active` 
      before and after to 

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vSetAspectRatio"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vSetAspectRatio</span>(<span class="sig-arg">v_ids</span>=<span class="sig-default"><code class="variable-group">[</code>-1<code class="variable-group">]</code></span>,
        <span class="sig-arg">y_over_x</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSetAspectRatio">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>strech images in y direction use negative value to mirror (flip)</p>
  <p>if v_ids is a scalar change only for that viewer, otherwise for all 
  viewers in that list</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vSetCoordsDisplayFormat"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vSetCoordsDisplayFormat</span>(<span class="sig-arg">v_id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">showAsFloat</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">width</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSetCoordsDisplayFormat">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>change format of coordinate / value info at to of viewer showAsFloat: 
  True / False -- to show decimal x,y coordinates width: pixel width 
  reserved for info text (-1 for &quot;default&quot;)</p>
  <p>either value can be None to left unchanged</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vReadRGBviewport"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vReadRGBviewport</span>(<span class="sig-arg">v_id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">clip</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">flipY</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vReadRGBviewport">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

return returns array with r,g,b values from &quot;what-you-see&quot;
   shape(3, height, width)
   dtype=uint8

   v_id is either a number (the &quot;viewer-ID&quot;)
           or a &quot;viewer&quot;-object

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vSaveRGBviewport"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vSaveRGBviewport</span>(<span class="sig-arg">v_id</span>,
        <span class="sig-arg">fn</span>,
        <span class="sig-arg">clip</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">flipY</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSaveRGBviewport">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

save &quot;what-you-see&quot; into RGB file of type-given-by-filename

   v_id is either a number (the &quot;viewer-ID&quot;)
           or a &quot;viewer&quot;-object

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vRotate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vRotate</span>(<span class="sig-arg">v_id</span>,
        <span class="sig-arg">angle</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vRotate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

set displaying-rotation for viewer v_id
if angle is None open slider GUI

v_id is either a number (the &quot;viewer-ID&quot;)
     or a &quot;viewer&quot;- or a &quot;spv&quot;-object

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vLeftClickBox"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vLeftClickBox</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">fixSize</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">roundCoords2int</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickBox">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

if fixSize is None:
   every click sets one corner (the opposite corner from last click)
if    fixSize is   (width,height)-tuple
or if fixSize is   scalar (box is square)
    every click sets center

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vLeftViewSubRegion"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vLeftViewSubRegion</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">color</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">gfxWhenDone</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">hide</code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftViewSubRegion">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>use left mouse button to select a square sub region in viewer 
  &quot;id&quot; a new Y.view window will show that region</p>
  <p>if color, use Y.view2 instead of Y.view</p>
  <p>gfxWhenDone should be one of: 'hide', 'remove', None</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vLeftClickDoes"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vLeftClickDoes</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">callGlFn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">callFn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">roundCoords2int</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">onlyOnClick</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickDoes">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

register left-click handler functions for viewer id
for v=viewers[id] v.lastLeftClick_atYX  gets set to remember 
    the y,x coordinates of the last click (as N.array)

if callGlFn is not None: function to be called with arguments x,y (in that order!)  
             this is to be used to set up a GL list 
if callFn is not None: function to be called with arguments x,y (in that order!) 

if roundCoords2int  coordinates are integers, 
       otherwise float (first pixel is between -.5 .. +.5)

if onlyOnClick is False, call fct when LeftIsDown,
     i.e. also while moving when button kept down

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vLeftClickNone"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vLeftClickNone</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">delAll</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vLeftClickNone">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>unregister left-click handler functions for viewer id there were 
  registered via vLeftClickDoes</p>
  <p>if delAll: unregister all, otherwise only the last such function</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vAddGraphics"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vAddGraphics</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">fn</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vAddGraphics">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
try e.g. fn=lambda:Y.glCircle(100,100)
    #   where:  1 - append
#          -1 - prepend
#          0  - remove old graphics

if fn is a list of functions each gets called

    Note: remember ... doesnt work in loop !?
    

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vFollowMouse"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vFollowMouse</span>(<span class="sig-arg">v_id</span>,
        <span class="sig-arg">xyViewers</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">xzViewers</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">yzViewers</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">zAxis</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">crossColor</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">setSliderInXYviewers</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">followZoomInXYviewers</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">followZoomInSideviewers</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vFollowMouse">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

if viewer v_id has more than one z-slider, 
   zAxis specifies which zaxis of v_id to use for z coordinate in xz-,yz-Viewers

if all lists (xyViewers, xzViewers and yzViewers) are empty, 
reset v_id  to NOT follow mouse cursor

items in xyViewers can be a scalar &quot;vid&quot;, or a tuple &quot;(vid,(factorY,factorX))&quot;
   the latter, is useful if vid is a zoomed view of (v_id)

TODO: FIXME: cyclic - recursive calls through setslider .... (20080902)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vSyncViewers"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vSyncViewers</span>(<span class="sig-arg">vids</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>0<code class="variable-op">, </code>1<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">syncHist</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">registerDClick</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vSyncViewers">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

if vids is empty: sync all viewers

`color`: color of fake mouse cursor in other viewers

double click in viewer, to temporily deactivate mouse sync
or use right-click pop menu, and use menu to stop sync

registerDClick can be True,False or a list of vids, where to register the dclick

add to each viewer's right-click popup menu: disable / finish sync

(this calls Y.vFollowMouse on viewers &quot;reciprocecely&quot; -
  is decides on XY, XZ, YZ behaviour based on viewer title)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgMarkIn3D"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgMarkIn3D</span>(<span class="sig-arg">v_id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">zyx</span>=<span class="sig-default"><code class="variable-group">(</code>None<code class="variable-op">, </code>200<code class="variable-op">, </code>200<code class="variable-group">)</code></span>,
        <span class="sig-arg">kind</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Cross</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">s</span>=<span class="sig-default">4</span>,
        <span class="sig-arg">zPlusMinus</span>=<span class="sig-default">9999</span>,
        <span class="sig-arg">colAtZ</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>1<code class="variable-op">, </code>1<code class="variable-group">)</code></span>,
        <span class="sig-arg">colLessZ</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">colMoreZ</span>=<span class="sig-default"><code class="variable-group">(</code>0<code class="variable-op">, </code>1<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">widthAtZ</span>=<span class="sig-default">2</span>,
        <span class="sig-arg">widthLessZ</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">widthMoreZ</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">mark3D</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgMarkIn3D">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>kind is one of 'Cross', 'Circle', 'Box'</p>
  <p>zyx is 3-tuple: if z is None use current</p>
  <p>col: color AtZ    - in Z section at z LessZ  - in Z section smaller 
  than z MoreZ  - in Z section larger than z</p>
  <p>zPlusMinus - how many sections above/below z should be marked (at 
  most)</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="glutText"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">glutText</span>(<span class="sig-arg">str</span>,
        <span class="sig-arg">posXYZ</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">size</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">mono</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">color</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enableLineSmooth</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#glutText">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

use GLUT to draw some text
font type GLUT_STROKE_ROMAN      ( == 0) -&gt; mono=0
font type GLUT_STROKE_MONO_ROMAN ( == 1) -&gt; mono=1
if posXYZ is not None: posXYZ is EITHER (x,y) OR (x,y,z)
if size is not None: set size scale (EITHER scalar, (sx,sy) or (sx,sy,sz)
   [GLUT stroke font size of 1 is 100 &quot;pixels&quot; high for the letter `A`]

if color is not None: call glColor3f(color)
if enableLineSmooth  bracket code with glEnable/glDisable GL_LINE_SMOOTH

# GLUT_STROKE_ROMAN
#         A proportionally spaced  Roman  Simplex  font  for
#         ASCII  characters  32 through 127. The maximum top
#         character in the font is 119.05 units; the  bottom
#         descends 33.33 units.
# GLUT_STROKE_MONO_ROMAN
#         A  mono-spaced  spaced  Roman  Simplex  font (same
#         characters as GLUT_STROKE_ROMAN) for ASCII charac-
#         ters  32 through 127. The maximum top character in
#         the font is  119.05  units;  the  bottom  descends
#         33.33  units. Each character is 104.76 units wide.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="crust"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">crust</span>(<span class="sig-arg">showLinesNumbers</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">wrapLongLines</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#crust">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>open a new pyCrust terminal. this combines a shell with an inspect 
  panel (and more)</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="shell"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shell</span>(<span class="sig-arg">showLinesNumbers</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">wrapLongLines</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">clone</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#shell">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>open a new pyShell terminal. if clone: new shell will be another 
  (linked) &quot;view&quot; of main shell window</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="inspectWX"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">inspectWX</span>(<span class="sig-arg">selectObj</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">refreshTree</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#inspectWX">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>use this to debug / develop wx applications</p>
  <p>Creates the inspection frame if it hasn't been already, and raises it 
  if neccessary.  Pass a widget or sizer in selectObj to have that object 
  be preselected in widget tree.  If refreshTree is True then the widget 
  tree will be rebuilt, otherwise if the tree has already been built it 
  will be left alone.</p>
  <p>ref. http://wiki.wxpython.org/Widget%20Inspection%20Tool</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="inspect"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">inspect</span>(<span class="sig-arg">what</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#inspect">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>open a new pyFilling window. this is what you want to investigate all 
  the variables, modules, and more</p>
  <p>if what is None: defaults to `locals()` in `__main__` (i.e. 
  `__main__.__dict__`)</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="shellExec0"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shellExec0</span>(<span class="sig-arg">command</span>,
        <span class="sig-arg">addHistory</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">useLocals</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">writeCommand</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellExec0">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

to emulate a command beeing typed into the Priithon shell,
exec `command` in __main__.__dict__
and, if `addHistory` is True
 inject `command` into Priithon shell history

if `useLocals` uses callers local name space in addition to __main__ globals
  note: `useLocals` should be False, if you want to change __main__ 
        without having to use the `globals ...` line

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="shellExec"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shellExec</span>(<span class="sig-arg">command</span>,
        <span class="sig-arg">prompt</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellExec">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Execute command as if it was typed in directly. &gt;&gt;&gt; 
  Y.shellExec('print &quot;this&quot;') &gt;&gt;&gt; print &quot;this&quot;
  this &gt;&gt;&gt;</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="shellMessage"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shellMessage</span>(<span class="sig-arg">msg</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellMessage">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>write a message into (main) shell window - or into terminal if no wx 
  shell exists</p>
  <p>msg should end on r'\n'</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="shellMenuAppendNewCommand"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shellMenuAppendNewCommand</span>(<span class="sig-arg">cmd</span>,
        <span class="sig-arg">menuText</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">new command</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">menuCtrlKey</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">D</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">menu</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">bell</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">execModule</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#shellMenuAppendNewCommand">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

register a new menu command with Ctrl key shortcut
cmd:
   if cmd is callable it will get called: cmd()
   else: cmd will get exec'ed w/ execModule as globals
        if execModule is None: use __main__

if cmd == &quot;&quot;:
   no new command will be installed, only the old one might get deleted (see below)

if bell:
   let bell sound before calling f()

if the menu already contains an item with `menuText`, is gets replaced

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="clipboardSetText"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">clipboardSetText</span>(<span class="sig-arg">obj</span>,
        <span class="sig-arg">useRepr</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#clipboardSetText">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>write text into system clipboard</p>
  <p>if useRepr:  converts any obj into text using repr()</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="clipboardGetText2array"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">clipboardGetText2array</span>(<span class="sig-arg">transpose</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">comment</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">#</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">sep</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">convFcn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">skipNlines</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">convertDecimalKomma</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#clipboardGetText2array">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Return an array containing the data currently as text in the clipboard. This
function works for arbitrary data types (every array element can be
given by an arbitrary Python expression), but at the price of being
slow. 

if convFcn is not None:
    convFcn is called for each &quot;cell&quot; value - a string !.
    useful here: &quot;N.float32&quot;  # WRONG !! THIS DOES NOT WORK FIXME !
else:
    &quot;eval&quot; is called for each cell

if sep is None, any white space is seen as field separator
ignore all lines that start with any character contained in comment

if convertDecimalKomma:
   convert e.g. &quot;10,2&quot; to &quot;10.2&quot;

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgRemove"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgRemove</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">ignoreError</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgRemove">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics -</p>
  <p>remove GLList index idx</p>
  <p>if ignoreError: invalid `idx` will be silently ignored</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgRefresh"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgRefresh</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgRefresh">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics - or not (CHECK!)</p>
  <p>refresh (= redraw) viewer</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgEnabledMaster"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgEnabledMaster</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnabledMaster">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics -</p>
  <p>return if master-enable is on or off (for all GLLists)</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgEnableMaster"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgEnableMaster</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">on</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnableMaster">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics -</p>
  <p>dis-/enable all GLList</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgEnable"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgEnable</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">on</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">ignoreError</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnable">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics -</p>
  <p>disable GLList index idx if ignoreError: invalid `idx` will be 
  silently ignored</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgEnabled"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgEnabled</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">-1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgEnabled">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics -</p>
  <p>return if GLList index idx is enabled</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgNameBlacklist"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgNameBlacklist</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">add</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameBlacklist">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>blacklisted line grpahics are (can be) ignored by vgNameEnable() used 
  especially by auto-on/off trigged via &quot;z-section change&quot; all 
  idx with given name are added (add=True) or removed (add=False) from 
  blacklist. (noop if `name` doesn't exist)</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgNameToggle"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgNameToggle</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">on</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameToggle">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

toggle on/off (en-/dis-able) gfx with given name
if on is None:
    toggle based on curr. state of first idx having &quot;name&quot; being blacklisted
otherwise switch to 'on'(True) or 'off' (False)

switching to 'on' might either enable all gfx having &quot;name&quot;
or enable all gfx having the current section tuple name
 (heuristic: if first idx of &quot;name&quot; has also a tuple as name)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgNameEnablerGUIbox"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgNameEnablerGUIbox</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgNameEnablerGUIbox">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

open GUI window for easy on/off switching of named GFXs

(this is implemented with the help of vgNameBlacklist 
 to overwrite auto on/off when changing z-sections)

use right-click to refresh list of GFX names 

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgRemoveAll"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgRemoveAll</span>(<span class="sig-arg">id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgRemoveAll">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>viewer line graphics -</p>
  <p>this really removes(!) all line graphics (GLList) stuff idx values 
  will restart at 0 here nothing gets &quot;only&quot; set to None</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vDrawingCircles"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vDrawingCircles</span>(<span class="sig-arg">v_id</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">allZsecs</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">r</span>=<span class="sig-default">10</span>,
        <span class="sig-arg">val</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">add</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vDrawingCircles">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

if allZsecs:
    drawing fills all z sections the same
else:
    draw only into current z-sec

use channel != None for drawing into that channel of a viewer2 window
otherwise all channels will be drawn in the same (viewer2 only)

if add: add value is used as multiplier and then added to image,  
otherwise image is substituted where brush&gt;0 

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="registerEventHandler"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">registerEventHandler</span>(<span class="sig-arg">handlerList</span>,
        <span class="sig-arg">newFcn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">newFcnName</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">oldFcnName</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">delAll</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#registerEventHandler">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

use this for event-handler function lists.
handlerList could be e.g. Y.viewers[-1].viewer.doOnMouse

to append a new handler function:
    set newFcn to handler function
    set newFcnName to a string, if you want to rename newFcn
    set oldFcnName to None

to remove functions by name:
    set newFcn to None (default)
    set oldFcnName to the handler function name that should be removed
    if delAll: not only the last, but all, such handlers will get removed


to replace a given handler function:
    set oldFcnName and newFcn and (optionally) newFcnName
    the default oldFcnName('') is a shortcut for oldFcnName=newFcnName
    the last(!) function in list that matches oldFcnName gets replaced
    if delAll, &quot;other&quot; functions in that list, that have name oldFcnName are removed,
    otherwise, these would be left unchanged 

if both newFcn and oldFcnName are not None, and oldFcnName does NOT already exist in the list,
    the new handler is appended

if newFcn is a string: it is executed in `__main__` with `args` containing the handler arguments

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddArrows"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddArrows</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">qs</span>,
        <span class="sig-arg">factor</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddArrows">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a point list of Y-X tuples
qs is a point list of Y-X tuples
lines are being drawn from a point in ps to the corresponding
point in qs
factor  'stretches' the lines &quot;beyond&quot; the b-point

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddArrowsDelta"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddArrowsDelta</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">ds</span>,
        <span class="sig-arg">factor</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddArrowsDelta">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a point list of Y-X tuples
ds is a point list of delta Y-X tuples
lines are being drawn from a point in ps to the corresponding
point at p + delta
factor  'stretches' the lines &quot;beyond&quot; the arrow-end

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddBoxes"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddBoxes</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">l</span>=<span class="sig-default">4</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddBoxes">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

ps is a point list of Y-X tuples  OR
   an entry might contain a third value used as l for that point
l is the (default) side length of the boxes

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddCircles"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddCircles</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">r</span>=<span class="sig-default">4</span>,
        <span class="sig-arg">nEdges</span>=<span class="sig-default">20</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddCircles">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a point list of Y-X tuples  (circle centers) OR
   an entry might contain a third value used as r for that point
r is the (default) radius of the circles

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddCrosses"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddCrosses</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">l</span>=<span class="sig-default">4</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddCrosses">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

ps is a point list of Y-X tuples  OR
   an entry might contain a third value used as l for that point
l is the (default) length of the crosses; if length &lt;0: draw plus instead of cross

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddEllipses"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddEllipses</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">nEdges</span>=<span class="sig-default">20</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddEllipses">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

    viewer line graphics - returns GLList index(idx)

        ps is a point list of tuples (circle centers, radius)
Y-X-R  or Y-X-RY-RX or Y-X-RY-RX-PHI
 
    

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddLineStrip"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddLineStrip</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddLineStrip">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a point list of Y-X tuples
lines are being drawn connecting all points in as from the first to
the last

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddLines"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddLines</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">ltype</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">segcols</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">segcolflat</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddLines">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

 viewer line graphics - returns GLList index(idx)

     ps is a point list of Y-X tuples
 (in general) lines are being drawn connecting all points in ps;
 more specificly is the way of how to connect the dots given by ltype;
    the ltypes are:
    &gt;&gt;&gt; GL.GL_LINES       #  o--o o--o ...
    1
    &gt;&gt;&gt; GL.GL_LINE_LOOP   #  x--o--o--o--x (x is &quot;looped back&quot;)...
    2
    &gt;&gt;&gt; GL.GL_LINE_STRIP  #  o--o--o--o ...
    3
    &gt;&gt;&gt; GL.GL_POINTS      #  .  .  .  .
    0
    &gt;&gt;&gt; GL.GL_POLYGON     #  like loop, but filled
    9
if segcols is not None:
   segCols[i] is used to color line segment [i] (and following)

   if segcolflat:
      segments have uniform color of folowing vertex, 
         otherwise colors are interpolated

 

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddRect"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddRect</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">enclose</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddRect">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a pair of Y-X tuples
if enclose: boxes are enlarged by .5 in each direction(CHECK!)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddRectFilled"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddRectFilled</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">enclose</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddRectFilled">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a pair of Y-X tuples
if enclose: boxes are enlarged by .5 in each direction(CHECK!)

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="vgAddTexts"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vgAddTexts</span>(<span class="sig-arg">id</span>,
        <span class="sig-arg">ps</span>,
        <span class="sig-arg">size</span>=<span class="sig-default">0.1</span>,
        <span class="sig-arg">mono</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">enumLabel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code></span>,
        <span class="sig-arg">width</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">idx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">enable</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">refreshNow</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Priithon.usefulX-pysrc.html#vgAddTexts">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

viewer line graphics - returns GLList index(idx)

    ps is a point list of Y-X-text tuples (if enumLabel is None)
size, mono is for Y.glutText
[GLUT stroke font size of 1 is 100 &quot;pixels&quot; high for the letter `A`]
ps can be Y-X tuples if enumLabel is a number, label-text is auto-generated as 1,2,3,...(first used value is enumLabel 

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-VariablesDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="_rectCode"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_rectCode</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-quote">'''</code><code class="variable-string"></code>
<code class="variable-string">        y0,x0 = ps[0]</code>
<code class="variable-string">        y1,x1 = ps[1]</code>
<code class="variable-string">        if y0&gt;y1:</code>
<code class="variable-string">            y0,y1 = y1,y0</code>
<code class="variable-string">        if x0&gt;x1:</code>
<code class="variable-string">            x0,x1 = x1,x0</code>
<code class="variable-string">        if enclose:</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_colnames"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_colnames</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">amaranth</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.89803922,  0.16862745,  0.31372549])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">amber</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 1.        ,  0.74901961,  0.        ])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">aquamarine</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.49803922,  1.        ,  0.83137255])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">azure</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.        ,  0.49803922,  1.        ])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">beige</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.96078431,  0.96078431,  0.8627451 ])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.,  0.,  0.])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.,  0.,  1.])<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">bluegreen</code><code class="variable-quote">'</code><code class="variable-op">: </code>array([ 0.        ,  0.58431373,  0.71372549])<code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_colnames_255"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_colnames_255</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>0<code class="variable-op">, </code>255<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">cyan</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>255<code class="variable-op">, </code>255<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkblue</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>0<code class="variable-op">, </code>128<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkgreen</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>128<code class="variable-op">, </code>0<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>128<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">gray</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>128<code class="variable-op">, </code>128<code class="variable-op">, </code>128<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code>0<code class="variable-op">, </code>255<code class="variable-op">, </code>0<code class="variable-group">)</code><code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_colnames_simple_wikipedia_org_List_of_colors"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_colnames_simple_wikipedia_org_List_of_colors</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-quote">'''</code><code class="variable-string">Amaranth\t#E52B50</code>
<code class="variable-string">Amber\t#FFBF00</code>
<code class="variable-string">Aquamarine\t#7FFFD4</code>
<code class="variable-string">Azure\t#007FFF</code>
<code class="variable-string">Beige\t#F5F5DC</code>
<code class="variable-string">Black\t#000000</code>
<code class="variable-string">Blue\t#0000FF</code>
<code class="variable-string">Blue-green\t#0095B6</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_spectrum"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_spectrum</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">yellow</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkblue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">violet</code><code class="variable-quote">'</code><code class="variable-group">]</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_spectrum2"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_spectrum2</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">255:255:0</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">cyan</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkblue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_spectrum3"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_spectrum3</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">255:255:0</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">cyan</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkblue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="cms_spectrum4"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">cms_spectrum4</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">black</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">darkred</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">red</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">orange</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">255:255:0</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">green</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">cyan</code><code class="variable-quote">'</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">blue</code><code class="variable-quote">'</code><code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Nov 22 14:59:33 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
